from flask import render_template, request
from . import main_blueprint
from ..models.tables import Course


@main_blueprint.route('/index')
def index():
    course = Course.query.all()
    print(course[0].id)
    return render_template('index.html', title='live', ip=request.remote_addr)